import service from '@/utils/request'
export const yrzyGetCategory = (params) => {
  return service({
    url: '/yrzy/yrzyGetCategory',
    method: 'get',
    params
  })
}

export const yrzyGetidCategory = (params) => {
  return service({
    url:'/yrzy/yrzyGetidCategory',
    method:'get',
    params
  })
}

export const yrzyDeleteCategory = (params) => {
  return service({
    url:'/yrzy/yrzyDeleteCategory',
    method:'delete',
    params
  })
}

export const yrzyCreateCategory = (data) => {
  return service({
    url:'/yrzy/yrzyCreateCategory',
    method:'post',
    data
  })
}

export const yrzyUpdateCategory = (data) => {
  return service({
    url:'/yrzy/yrzyUpdateCategory',
    method:'put',
    data
  })
}
